# -*- coding:utf-8 -*-
__author__ = 'waxyfish'
__date__ = "2022-09-25"
__doc__ = "app"

# 创建初始化app：工厂化方法来创建它
from flask import Flask
from app.server.user import userbp
from app.API import APIbp
from config import FLASKCONFIG

def creat_app():
    app = Flask(__name__)
    app.config.from_object(FLASKCONFIG)
    app.register_blueprint(userbp)
    app.register_blueprint(APIbp)
    return app